<template>
	<view class="inof" :style="'background-color: '+list.color+';'">
		<view class="top-image">
			<image :src="list.image" mode=""></image>
		</view>
		<view class="top-r">
			<view class="username">{{list.num}}</view>
			<view class="num">{{list.value}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"info-list",
		props:{
			list:{
				type: Object,
				default: {}
			},
			color:{
				type: String,
				default:''
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="less" scoped>
.inof{
	display: flex;
	align-items: center;
	width: 340rpx;
	height: 160rpx;
	border-radius: 15rpx;
	// margin-top: 10rpx;
	// margin-bottom: 10rpx;
}
.top-image{
	display: flex;
	justify-content: center;
	align-items: center;
	 width: 80rpx;
	 height: 80rpx;
	 border-radius: 50%;
	 margin-left: 40rpx;
	 background-color: #fff;
	 image{
		 width: 60%;
		 height: 50%;
	 }
 }
 .top-r{
	 width: 120rpx;
	 height: 120rpx;
	 margin-left: 30rpx;
	 .username{
		 margin-top: 20rpx;
		 font-weight: 400;
		 font-size: 32rpx;
		 color:#fff;
		 white-space:nowrap
	 }
	 .num{
		 margin-top: 4rpx;
		 font-weight: 300;
		 font-size: 22rpx;
		 white-space:nowrap;
		color:#fff;
	 }
 }
</style>